package com.egao.common.module.recommendation.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 公务员考试报名推荐表（应届生版）
 * </p>
 *
 * @author shu
 * @since 2025-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("civil_service_application_recommendation")
@ApiModel(value="CivilServiceApplicationRecommendation对象", description="公务员考试报名推荐表（应届生版）")
@Accessors(chain = true)//允许链式构建   a.setA().setB()
public class CivilServiceApplicationRecommendation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键（自增唯一标识）")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("学院编码")
    private String collegeCode;

    @ApiModelProperty("学号")
    private String xh;

    @ApiModelProperty("姓名")
    private String xm;

    @ApiModelProperty(value = "籍贯（格式：省/市/县，如湖北省襄阳市）")
    @TableField("native_place")
    private String nativePlace;

    @ApiModelProperty(value = "爱好和特长")
    @TableField("hobbies_and_skills")
    private String hobbiesAndSkills;

    @ApiModelProperty(value = "在校担任职务")
    @TableField("positions_held")
    private String positionsHeld;

    @ApiModelProperty(value = "照片存储路径")
    @TableField("photo_url")
    private String photoUrl;

    @ApiModelProperty(value = "奖惩情况")
    @TableField("awards_and_punishments")
    private String awardsAndPunishments;

    @ApiModelProperty(value = "个人简历")
    @TableField("resume")
    private String resume;

    @ApiModelProperty(value = "家庭成员情况")
    @TableField("family_members")
    private String familyMembers;

    @ApiModelProperty(value = "审核状态 0-待提交，1-待审核，2-审核通过，3-审核不通过")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "学院审核意见")
    @TableField("review_comment")
    private String reviewComment;

    @ApiModelProperty(value ="审核人")
    @TableField("review_user")
    private Integer reviewUser;


    @ApiModelProperty(value = "学生成绩表")
    @TableField("student_achievement_url")
    private String studentAchievementUrl;

    @ApiModelProperty(value = "学校盖章时间")
    @TableField("school_recommendation_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date schoolRecommendationTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除 0正常 1删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "是否生成过 0没有 1生成过")
    @TableField("gen_flag")
    private Integer genFlag;

    @ApiModelProperty(value = "生成的pdf的地址")
    @TableField("rpt_url")
    private String rptUrl;

    @ApiModelProperty("学历")
    @TableField("degree")
    private String degree;

}
